package cn.alone.pet.service;

import cn.alone.basic.service.IBaseService;
import cn.alone.basic.util.PageList;
import cn.alone.pet.domain.Pet;
import cn.alone.pet.domain.SearchMasterMsg;
import cn.alone.pet.query.SearchMasterMsgQuery;
import cn.alone.user.domain.Logininfo;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    void publish(SearchMasterMsg masterMsg, Logininfo logininfo);
    /**
     * 发布寻主信息
     * @param masterMsg
     * @param
     *
     */
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, Logininfo logininfo);

    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo logininfo);

    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo logininfo);

    /**
     * 处理寻主消息
     * @param pet
     * @param
     */
    void handle(Pet pet, Logininfo logininfo);
}
